import fs from 'fs'
import sendData from '../utils/sendData.js'
sendData({
  url: 'http://localhost:8080/',
  data: { a: 1, b: 2, file1: fs.createReadStream('C:\\Users\\2022\\Pictures\\4e85c026845f2c04c7d9c62a1bb4436f.jpg') }
}).then(res => {
  res.body.on('data', chunk => {
    console.log(chunk.toString()+'|over!')
  })
})